export type GithubAuthor = {
    /**
     * 用户名
     */
    "login": string,
    "id": number,
    "node_id": string,
    /**
     * 头像地址
     */
    "avatar_url": string,
    "gravatar_id": string,
    /**
     * 用户信息地址
     */
    "url": string,
    /**
     * 用户首页html地址
     */
    "html_url": string,
    "followers_url": string,
    "following_url": string,
    "gists_url": string,
    "starred_url": string,
    "subscriptions_url": string,
    "organizations_url": string,
    "repos_url": string,
    "events_url": string,
    "received_events_url": string,
    "type": string,
    "site_admin": boolean
}

export type GithubAsset = {
    /**
     * 资产地址
     */
    "url": string,
    "id": number,
    "node_id": string,
    /**
     * 资产名称
     */
    "name": string,
    "label": string,
    /**
     * 上传者信息
     */
    "uploader": GithubAuthor,
    /**
     * 资产类型
     */
    "content_type": string,
    "state": string,
    /**
     * 大小
     */
    "size": number,
    /**
     * 下载数
     */
    "download_count": number,
    /**
     * 创建时间
     */
    "created_at": string,
    "updated_at": string,
    /**
     * 下载地址
     */
    "browser_download_url": string
}

export type GithubReactions = {
    "url": string,
    "total_count": number,
    "+1": number,
    "-1": number,
    "laugh": number,
    "hooray": number,
    "confused": number,
    "heart": number,
    "rocket": number,
    "eyes": number
}

export type GithubReleasesType = {
    "url": string,
    /**
     * 资产地址
     */
    "assets_url": string,
    "upload_url": string,
    /**
     * html地址
     */
    "html_url": string,
    "id": number,
    /**
     * 作者信息
     */
    "author": GithubAuthor,
    "node_id": string,
    /**
     * tag名称
     */
    "tag_name": string,
    /**
     * 目标分支
     */
    "target_commitish": string,
    "name": string,
    "draft": boolean,
    "prerelease": boolean,
    /**
     * 创建时间
     */
    "created_at": string,
    "published_at": string,
    /**
     * 资产列表
     */
    "assets": GithubAsset[],
    "tarball_url": string,
    "zipball_url": string,
    "body": string,
    "discussion_url": string,
    "reactions": GithubReactions,
    "mentions_count": number
}
